package com.dfrz.bookstore.entry;


import java.sql.Date;

/**
 * 类功能描述:
 *     订单类
 * @Author keyan
 * @Date 2021/5/18 19:08
 */
public class Order {
    private int id;             //订单ID
    private String order_item_id;  //订单项ID
    private int user_id;        //用户ID
    private int status;    //订单状态
    private Date create_time;   //创建日期
    private Date update_time;   //更新日期

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrder_item_id() {
        return order_item_id;
    }

    public void setOrder_item_id(String order_item_id) {
        this.order_item_id = order_item_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", order_item_id=" + order_item_id +
                ", user_id=" + user_id +
                ", status=" + status +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
